home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x64.msi / Data1.cab / _6623B6F02DF94960B9FF7B1C316D114B < prev    next >
Extensible Markup Language  |  2008-06-28  |  4KB  |  146 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet 
  4.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  6.   version="1.0">
  7.  
  8. <xsl:output 
  9.   method="html" 
  10.   version="4.0" 
  11.   encoding="UTF-8" 
  12.   omit-xml-declaration="yes" 
  13.   indent="yes"/>
  14.  
  15. <xsl:template match="/Root">
  16.  
  17. <html>
  18.   <xsl:variable name="FSName" select="PropertyBag/Property[@name='PROPID_HDM_INTERNALFSNAME']"/>
  19.   <xsl:variable 
  20.     name="HasFSProps" 
  21.     select="$FSName != 'UNKNOWN' and 
  22.           $FSName != 'INVALID' and 
  23.           $FSName != 'FREE' and 
  24.           $FSName != 'NOTFORMATTED' and 
  25.           $FSName != 'LSWAP' and
  26.           $FSName != 'LSWAP1' and
  27.           $FSName != 'BACKUPCAPSULE'"
  28.     />
  29.  
  30.   <center>
  31.     <table cellpadding="0" cellspacing="0" border="0" width="90%">
  32.       <tr>
  33.         <td>
  34.       <img src='<pss:image internal="PROPID_SMALLICON"/>'/>
  35.     </td>
  36.  
  37.     <td valign="center" align="left" width="70%">
  38.       <b>
  39.             <xsl:value-of select="PropertyBag/Property[@name='PROPID_DISPLAYNAME']"/>
  40.         <xsl:if test="boolean($HasFSProps)">,
  41.                 <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_VOLUMELABEL']"/>
  42.             </xsl:if>
  43.           </b>
  44.     </td>
  45.       </tr>
  46.  
  47.       <tr>
  48.           <td colspan="2" valign="bottom"><hr/></td>
  49.       </tr>
  50.  
  51.       <tr>
  52.           <td>
  53.       <nobr>QT_TRANSLATE_NOOP("QObject", "Type:")</nobr>
  54.     </td>
  55.     <td>
  56.       <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_TYPESTRING']"/>
  57.     </td>
  58.       </tr>
  59.  
  60.       <xsl:if test="$FSName != 'UNKNOWN' and 
  61.           $FSName != 'INVALID' and 
  62.           $FSName != 'FREE' and 
  63.           $FSName != 'NOTFORMATTED' and 
  64.           $FSName != 'BACKUPCAPSULE'">
  65.       <tr>
  66.         <td>
  67.       <nobr>QT_TRANSLATE_NOOP("QObject", "File System:")</nobr>
  68.     </td>
  69.     <td>
  70.       <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_FSNAME']"/>
  71.     </td>
  72.       </tr>
  73.       </xsl:if>
  74.  
  75.       <xsl:if test="boolean($HasFSProps)">
  76.           <tr>
  77.             <td>
  78.               <nobr>QT_TRANSLATE_NOOP("QObject", "Serial Number:")</nobr>
  79.             </td>
  80.             <td>
  81.               <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_SERIALNUMBER']"/>
  82.             </td>
  83.           </tr>
  84.       </xsl:if>
  85.  
  86.       <tr>
  87.         <td>
  88.       <nobr>QT_TRANSLATE_NOOP("QObject", "Capacity:")</nobr>
  89.     </td>
  90.     <td>
  91.       <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_SIZESTRING']"/>
  92.     </td>
  93.       </tr>
  94.  
  95.       <xsl:if test="boolean($HasFSProps)">
  96.           <tr>
  97.             <td>
  98.               <nobr>QT_TRANSLATE_NOOP("QObject", "Used space:")</nobr>
  99.             </td>
  100.             <td>
  101.               <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_DATASIZESTRING']"/>
  102.             </td>
  103.           </tr>
  104.     
  105.           <tr>
  106.             <td>
  107.               <nobr>QT_TRANSLATE_NOOP("QObject", "Free space:")</nobr>
  108.             </td>
  109.             <td>
  110.               <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_FREESIZESTRING']"/>
  111.             </td>
  112.           </tr>
  113.     
  114.           <tr>
  115.             <td>
  116.               <nobr>QT_TRANSLATE_NOOP("QObject", "Sectors per cluster:")</nobr>
  117.             </td>
  118.             <td>
  119.               <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_CLUSTERSIZE']"/>
  120.             </td>
  121.           </tr>
  122.       </xsl:if>
  123.     
  124.       <tr>
  125.         <td>
  126.       <nobr>QT_TRANSLATE_NOOP("QObject", "First physical sector:")</nobr>
  127.     </td>
  128.         <td>
  129.       <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_STARTINSECTORS']"/>
  130.     </td>
  131.       </tr>
  132.  
  133.       <tr>
  134.         <td>
  135.       <nobr>QT_TRANSLATE_NOOP("QObject", "Last physical sector:")</nobr>
  136.     </td>
  137.     <td>
  138.       <xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_ENDINSECTORS']"/>
  139.     </td>
  140.       </tr>
  141.     </table>
  142.   </center>
  143. </html>
  144. </xsl:template>
  145. </xsl:stylesheet>
  146.